package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户服务层
 */

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public int add(String username,String password) {
        return userMapper.add(username,password);
    }
    public UserInfo query(String username, String password) {
        return userMapper.query(username,password);
    }

}
